package com.liangzai.spring.demo.controller;

import org.springframework.web.bind.annotation.*;


@RequestMapping("/user2")
@RestController
public class UserController {
    @RequestMapping("/m1")
    public String m1(){
        return "m1";
    }

    @RequestMapping(value = "/m2",method = RequestMethod.GET)
    public String m2(){
        return "m2";
    }

    @RequestMapping(value = "/m3",method = RequestMethod.POST)
    public String m3(){
        return "m3";
    }

    @GetMapping(value = "/m4")
    public String m4(){
        return "m4";
    }

    @PostMapping("/m5")
    public String m5(){
        return "m5";
    }
}
